using System.Collections.Generic;
using System.Reflection;

namespace Kopernikus.Parsing.GenericActions
{
    public class LexerAction<TLexer, TToken> : LexerActionBase<TLexer, TToken>
    {
        private readonly Symbol m_symbol;

        public LexerAction(MethodInfo methodInfo, Symbol symbol) : base(methodInfo)
        {
            m_symbol = symbol;
        }


        protected override Symbol MapSymbol(string value, Dictionary<string, Symbol> symbolCache)
        {
            return m_symbol;
        }
    }
}